<?php

declare(strict_types=1);

namespace App\Model;
use Hyperf\DbConnection\Model\Model;

class PlayletBlocks extends Model
{
    protected ?string $table = 'playlet_blocks';

    const STATUS_SHOW = 1;
    const STATUS_HIDE = 0;


    public function applet()
    {
        return $this->hasOne(Applet::class, 'id', 'applet_id')->withTrashed()->select('id','name');
    }

}
